import useAxiosApi from '/@/utils/useAxiosApi';
const baseUrl = import.meta.env.VITE_APP_EDU_API;

export function getStudentEvaluate() {
    return useAxiosApi(baseUrl+`/getStudentEvaluateInfo`, {
        method: 'get',
        data: {},
    });
}

export function getEvaluateTemplate(evaluationCourseType) {
    return useAxiosApi(baseUrl+`/getStudentEvaluateTemplate/${evaluationCourseType}`, {
        method: 'get',
    });
}
export function studentEvaluate(data) {
    return useAxiosApi(baseUrl+`/studentEvaluate`, {
        method: 'post',
        data: {
            score: data.score,
            comments: data.comments,
            tcID: data.tcID,
            evalID: data.evalID,
            teacherID: data.teacherID,
            totalScore: data.totalScore
        },
    });
}
